<div style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;" id="PopBlockNotification">
  <div style="width: 760px;">
    <table align="center" border="0" cellpadding="3" cellspacing="0">
      <tbody><tr>
          <td>
            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
          <td align="center">
            Your popup blocker stopped you from chatting with a member. <a href="javascript:void(0);" onclick="popNewICWindow();">click here</a> to open the window<br>
            <a href="#">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
          </td>
          <td>
            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
        </tr>
      </tbody></table>
  </div>
</div>


<div class="profileedit">
  <div class="saved">Changes Saved!</div>
  <div class="backlink">
    <a href="#">
      <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/backarrow.png"><span>Back to Home</span></a>
  </div>
  <div class="basics">
    <?php if($data['photos'] == false) {?>
    <div class="nophoto">
      <a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload">
        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/noPhoto-1.gif">
        <span>You don't have<br>
          a photo!
        </span>
      </a>
      <span><a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload">Upload a photo</a></span>
    </div>
    <?php }else{ ?>
    <div class="photo">
        <a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload">
            <img src="<?php echo FRONT_SITE_URL ?>www/uploads/photos/thumbs/thumb_<?php echo $data['photos']['link_img'];?>"><span></span></a>
    </div>
    <?php } ?>
    <div>
      <h1>Edit My Profile</h1>
      <h4><a href="#">How will others see my profile?</a></h4>
      <div class="detailrow">
        <div data-key="Age" class="data">
          <div title="Click to Edit"><?php echo $data['date_birth'][0]; ?></div>
          <div>
            <div>
              <div class="AllGroups Age_group" data-question-key="Age">
                <div class="OptionGroup" data-responsegroup-key="Age">
                  <select id="BirthdayMonth">
                    <?php foreach(Constant::getMohthArray() as $key => $value): ?>                           
                      <option value="<?php echo $key; ?>" <?php if($key==$data['date_birth'][1][1]) echo 'selected';?>><?php echo $value; ?></option>
                    <?php endforeach ?>
                  </select>
                  <select id="BirthdayDay">
                    <?php for($ii=1;$ii<32;$ii++){ ?>
                      <option value="<?php echo $ii;?>" <?php if($ii==$data['date_birth'][1][0]) echo 'selected';?>><?php echo $ii;?></option>
                    <?php }?>
                  </select>
                  <select id="BirthdayYear">
                    <?php for($ii=2014;$ii>=1900;$ii--){ ?>
                      <option value="<?php echo $ii;?>" <?php if($ii==$data['date_birth'][1][2]) echo 'selected';?>><?php echo $ii;?></option>
                    <?php }?>
                  </select>
                </div>
              </div>
            </div>
            <div></div>
          </div>
        </div>
        |    <div data-key="Location" class="data" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/memberlocation/?back=MyProfile" data-hasanyresponse="False">
          <div title="Click to Edit">Sharpsburg, GA</div>
          <div>
            <div class="">
              <div class="AllGroups Location_group" data-question-key="Location">
              </div>
            </div>
            <div class=""></div>
          </div>
        </div>

      </div>
      <div class="detailrow">
        <div data-key="Gender" class="data" data-link="" data-hasanyresponse="False">
          <div title="Click to Edit"><?php echo $data['seeking']; ?></div>
          <div>
            <div class="">
              <div class="AllGroups Gender_group" data-question-key="Gender">
                <div class="OptionGroup" data-responsegroup-key="Gender">
                  <h5>I am:</h5>
                  <select id="Gender">
                    <option value="Female" <?php if($model['gender']=='female') echo 'selected';?>>Female</option>
                    <option value="Male" <?php if($model['gender']=='male') echo 'selected';?>>Male</option>
                  </select>

                </div>
                <div class="OptionGroup" data-responsegroup-key="Gender">
                  <h5>Looking for a:</h5>
                  <select id="Gender">
                    <option value="Female" <?php if($model['seeking']==1 || $model['seeking']==4) echo 'selected';?>>Female</option>
                    <option value="Male" <?php if($model['seeking']==2 || $model['seeking']==3) echo 'selected';?>>Male</option>
                  </select>

                </div>
              </div>
            </div>
            <div class=""></div>
          </div>
        </div>
        |    <div data-key="Height" class="data" data-link="" data-hasanyresponse="False">
          <div title="Click to Edit"><?php echo $data['tall'][1]; ?></div>
          <div>
            <div class="editProfileHeightTop">
              <div class="AllGroups Height_group" data-question-key="Height">
                <div class="OptionGroup" data-responsegroup-key="Height">
                  <select id="Height">
                    <?php foreach(Constant::getTallArray() as $key => $value): ?>                           
                      <option value="<?php echo $key; ?>" <?php if($data['tall'][0]==$key) echo 'selected';?>><?php echo $value; ?></option>
                    <?php endforeach ?>                    
                  </select>

                </div>
              </div>
            </div>
            <div class="editProfileHeight"></div>
          </div>
        </div>
      </div>
      <div class="completion">
        <h3>Total Profile Completion</h3>
        <div>
          <div style="width: 9.52px;">
            <p data-completion-key="global" data-completion-percent="6">6%</p>
          </div>
        </div>
      </div>
      <div class="uploadPhotoButton">
        <?php if($data['photos'] == false){ ?>
        <div class="popup">
          Until you post a photo, you're invisible...
        </div>
        <div class="arrow">
          <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/photodownarrow.png" alt="">
        </div>
        <?php } ?>
        <div class="photoButtonLink">
          <a class="button_style" href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload">Upload a Photo</a>
        </div>
      </div>

    </div>


  </div>
  <div class="about">
    <div class="tabs">
      <a class="active">About</a>
      <a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload">Photos</a>
    </div>
    <div class="tabcontent">
      <div id="AboutMe" class="left">


        <div>
          <div class="completionsmall">
            <h3>Completion</h3>
            <div>
              <div style="width: 90.6px;">
                <p data-completion-percent="80" data-completion-key="about">80%</p>
              </div>
            </div>
          </div>

        </div>

        <div>
          <div>Looking For:</div>
          <div>    <div data-key="Relationship_Expectations" class="data" data-link="" data-hasanyresponse="True">
              <div title="Click to Edit"><?php echo $data['looking']; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Relationship_Expectations_group" data-question-key="Relationship_Expectations">
                    <div class="OptionGroup" data-responsegroup-key="Relationship_Expectations">
                      <div id="Relationship_Expectations">
                        <div class="splitEmpCheck">
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '-1') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations--1" value="-1" type="checkbox">
                            <label for="Relationship_Expectations--1">Any</label>
                          </div> 
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '2') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-2" value="2" type="checkbox">
                            <label for="Relationship_Expectations-2">Marriage</label>
                          </div> 
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '4') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-4" value="4" type="checkbox">
                            <label for="Relationship_Expectations-4">Serious Relationship</label>
                          </div> 
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '8') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-8" value="8" type="checkbox">
                            <label for="Relationship_Expectations-8">Travel Partner</label>
                          </div> 
                        </div>
                        <div class="splitEmpCheck">
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '16') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-16" value="16" type="checkbox">
                            <label for="Relationship_Expectations-16">Casual Relationship</label>
                          </div> 
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '32') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-32" value="32" type="checkbox">
                            <label for="Relationship_Expectations-32">Friendship</label>
                          </div> 
                          <div class="empCheck">
                            <input <?php if(strpos($model['looking'], '64') !== false) echo 'checked'; ?> data-group="Relationship_Expectations" id="Relationship_Expectations-64" value="64" type="checkbox">
                            <label for="Relationship_Expectations-64">Pen Pal</label>
                          </div> 
                        </div>
                      </div>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div class="aboutmeline"></div>
        <div>
          <div>Occupation:</div>
          <div>    <div data-key="Occupation" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['occupation'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Occupation_group" data-question-key="Occupation">
                    <div class="OptionGroup" data-responsegroup-key="Occupation">
                      <select id="Occupation">
                        <?php foreach(Constant::getOccupationArray() as $key => $value): ?>  
                          <option value="<?php echo $key; ?>" <?php if($data['occupation'][2] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?> 
                        
                      </select>

                    </div>
                    <div class="OptionGroup" data-responsegroup-key="IsRetired">
                      <div id="IsRetired">
                        <div class="empCheck">
                          <input <?php if($data['occupation'][1]) echo 'checked'; ?> data-group="IsRetired" id="IsRetired-1" value="1" type="checkbox">
                          <label for="IsRetired-1">Retired?</label>
                        </div>
                      </div>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Education:</div>
          <div>    <div data-key="Education" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['education'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Education_group" data-question-key="Education">
                    <div class="OptionGroup" data-responsegroup-key="Education">
                      <select id="Education">
                        <?php foreach(Constant::getEducationArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['education'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?> 
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Income:</div>
          <div>    <div data-key="Income" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['income'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Income_group" data-question-key="Income">
                    <div class="OptionGroup" data-responsegroup-key="Income">
                      <select id="Income">
                        <?php foreach(Constant::getIncomeArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['income'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?> 
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div class="aboutmeline"></div>
        <div>
          <div>Religion:</div>
          <div>    <div data-key="Religion" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['religion'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Religion_group" data-question-key="Religion">
                    <div class="OptionGroup" data-responsegroup-key="Religion">
                      <select id="Religion">
                        <?php foreach(Constant::getReligionArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['religion'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?> 
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Political Affiliation:</div>
          <div>    <div data-key="Political_Affiliation" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['political'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Political_Affiliation_group" data-question-key="Political_Affiliation">
                    <div class="OptionGroup" data-responsegroup-key="Political_Affiliation">
                      <select id="Political_Affiliation">
                        <?php foreach(Constant::getPoliticalArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['political'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?> 
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Where I<br>grew up:</div>
          <div>    <div data-key="HomeTown" class="data" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/memberhometown" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['grewup'][0];?></div>
              <div>
                <div class="">
                  <div class="AllGroups HomeTown_group" data-question-key="HomeTown">
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div class="aboutmeline"></div>
        <div>
          <div>Height:</div>
          <div>    <div data-key="Height" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['tall'][1]; ?></div>
              <div>
                <div class="editProfileHeightTop">
                  <div class="AllGroups Height_group" data-question-key="Height">
                    <div class="OptionGroup" data-responsegroup-key="Height">
                      <select id="Height">
                        <?php foreach(Constant::getTallArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?> " <?php if($data['tall'][0]==$key) echo 'selected';?>><?php echo $value; ?></option>
                        <?php endforeach ?>                         
                      </select>

                    </div>
                  </div>
                </div>
                <div class="editProfileHeight"></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Body Type:</div>
          <div>    <div data-key="General_Build" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['bodytype'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups General_Build_group" data-question-key="General_Build">
                    <div class="OptionGroup" data-responsegroup-key="General_Build">
                      <select id="General_Build">
                        <?php foreach(Constant::getBodyArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['bodytype'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Hair:</div>
          <div>    <div data-key="Hair_Color" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['hair'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Hair_Color_group" data-question-key="Hair_Color">
                    <div class="OptionGroup" data-responsegroup-key="Hair_Color">
                      <select id="Hair_Color">
                        <?php foreach(Constant::getHairColorArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['hair'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Eyes:</div>
          <div>    <div data-key="Eye_Color" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['eyes_color'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Eye_Color_group" data-question-key="Eye_Color">
                    <div class="OptionGroup" data-responsegroup-key="Eye_Color">
                      <select id="Eye_Color">
                        <?php foreach(Constant::getColorArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['eyes_color'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Ethnicity:</div>
          <div>    <div data-key="Ethnicity" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['ethnicity'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Ethnicity_group" data-question-key="Ethnicity">
                    <div class="OptionGroup" data-responsegroup-key="Ethnicity">
                      <select id="Ethnicity">
                        <?php foreach(Constant::getEthnicityArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['ethnicity'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div class="aboutmeline"></div>
        <div>
          <div>Status:</div>
          <div>    <div data-key="Marital_Status" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['marial_status'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Marital_Status_group" data-question-key="Marital_Status">
                    <div class="OptionGroup" data-responsegroup-key="Marital_Status">
                      <select id="Marital_Status">
                        <?php foreach(Constant::getMaritalArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['marial_status'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Children:</div>
          <div>    <div data-key="Number_of_Children" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['childandliving'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Number_of_Children_group" data-question-key="Number_of_Children">
                    <div class="OptionGroup" data-responsegroup-key="Number_of_Children">
                      <h5>My children</h5>
                      <select id="Number_of_Children">
                        <?php foreach(Constant::getChildArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['childandliving'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                    <div class="OptionGroup" data-responsegroup-key="Living_at_Home">
                      <h5>Living at home</h5>
                      <select id="Living_at_Home">
                        <?php foreach(Constant::getChildArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['childandliving'][2] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Pet:</div>
          <div>    <div data-key="Pet" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['pet'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Pet_group" data-question-key="Pet">
                    <div class="OptionGroup" data-responsegroup-key="Pet">
                      <div id="Pet">
                        <?php 
                          $pet = Constant::getPetArray();
                          $count = 0;
                          echo '<div class="splitEmpCheck">';
                          for($ii=0;$ii<count($pet)/2;$ii++){
                            $check = '';
                            if($data['pet'][1]!=65536)
                              if(strpos($data['pet'][1], $ii.'') !== false) $check = 'checked';
                            echo '<div class="empCheck">';
                            echo '<input '.$check.' data-group="Pet" id="Pet-'.$ii.'" value="'.$ii.'" type="checkbox">';
                            echo '<label for="Pet-'.$ii.'"> '.$pet[$ii].'</label>';
                            echo '</div>';
                          }
                          echo '</div>';
                          echo '<div class="splitEmpCheck">';
                          for(;$ii<count($pet);$ii++){
                            $check = '';
                            if($data['pet'][1]!=65536)
                              if(strpos($data['pet'][1], $ii.'') !== false) $check = 'checked';
                            echo '<div class="empCheck">';
                            if($ii==count($pet)-1){
                              if($data['pet'][1] == 65536) $check = 'checked';
                              echo '<input '.$check.' data-group="Pet" id="Pet-65536" value="65536" type="checkbox">';
                              echo '<label for="Pet-65536"> None</label>';
                            }else{
                              echo '<input '.$check.' data-group="Pet" id="Pet-'.$ii.'" value="'.$ii.'" type="checkbox">';
                              echo '<label for="Pet-'.$ii.'"> '.$pet[$ii].'</label>';
                            }
                            echo '</div>';
                          }
                          echo '</div>'
                          //foreach(Constant::getChildArray() as $key => $value): 
                        ?>
                      </div>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <div>Smoking Preference:</div>
          <div>    <div data-key="Smoking_Preference" class="data" data-link="" data-hasanyresponse="False">
              <div title="Click to Edit"><?php echo $data['smoking'][0]; ?></div>
              <div>
                <div class="">
                  <div class="AllGroups Smoking_Preference_group" data-question-key="Smoking_Preference">
                    <div class="OptionGroup" data-responsegroup-key="Smoking_Preference">
                      <select id="Smoking_Preference">
                        <?php foreach(Constant::getSmokerArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['smoking'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>
                </div>
                <div class=""></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div id="AboutMyMatch" class="left" style="display:none;">

        <div id="whoimlookingfornav">
          <p class="whoimlookingfornavon aboutmeclick">About Me</p>
          <p class="whoimlookingfornavspacer">|</p>
          <p class="whoimlookingfornavoff aboutmymatchclick">About My Match</p>
        </div>

      </div>
      <div class="right">


        <div class="greetings">
          <h4>All new and updated greetings go through a quick review before being visible on our website.</h4>
          <div class="completionsmall">
            <h3>Completion</h3>
            <div>
              <div style="width: 18.92px;">
                <p data-completion-percent="16" data-completion-key="greetings">16%</p>
              </div>
            </div>
          </div>

          <h2>A little about me...</h2>
          <div class="highlight" data-key="greeting-0" style="<?php if($model['greeting1'] != '') echo 'display:none;' ?>">Oops!  You haven't answered this important question yet.</div>
          <div data-key="greeting-0" class="data">
            <div title="Click to Edit"><?php if($model['greeting1'] != '') echo $model['greeting1'];  ?> <span class="color-highlight-dark" style="<?php if($model['greeting1'] != '') echo 'display:none;' ?>">Get Started!</span></div>
            <div>
              <div>
                <div class="AllGroups" data-question-key="greeting-0">
                  <div class="OptionGroup" data-responsegroup-key="greeting-0">
                    <textarea id="greeting-0"><?php echo $model['greeting1']; ?></textarea>
                    <p class="remainingcharacters" align="right">Characters Remaining: <span>1250</span></p>

                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </div>
          <div class="clear"></div>
          <h2>About the one I'm looking for...</h2>
          <div class="highlight" data-key="greeting-1" style="<?php if($model['greeting2'] != '') echo 'display:none;' ?>">Oops!  You haven't answered this important question yet.</div>
          <div data-key="greeting-1" class="data">
            <div title="Click to Edit"><?php if($model['greeting2'] != '') echo $model['greeting2']; ?>  <span class="color-highlight-dark" style="<?php if($model['greeting2'] != '') echo 'display:none;' ?>">Get Started!</span></div>
            <div>
              <div>
                <div class="AllGroups" data-question-key="greeting-1">
                  <div class="OptionGroup" data-responsegroup-key="greeting-1">
                    <textarea id="greeting-1"><?php if($model['greeting2'] != '') echo $model['greeting2']; ?></textarea>
                    <p class="remainingcharacters" align="right">Characters Remaining: <span>1250</span></p>

                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </div>
          <div class="clear"></div>
          <h2>I'd just like to add...</h2>
          <div class="highlight" data-key="greeting-2" style="<?php if($model['greeting3'] != '') echo 'display:none;' ?>">Oops!  You haven't answered this important question yet.</div>
          <div data-key="greeting-2" class="data">
            <div title="Click to Edit"><?php if($model['greeting3'] != '') echo $model['greeting3']; ?>  <span class="color-highlight-dark" style="<?php if($model['greeting3'] != '') echo 'display:none;' ?>">Get Started!</span></div>
            <div>
              <div>
                <div class="AllGroups" data-question-key="greeting-2">
                  <div class="OptionGroup" data-responsegroup-key="greeting-2">
                    <textarea id="greeting-2"><?php if($model['greeting3'] != '') echo $model['greeting3']; ?></textarea>
                    <p class="remainingcharacters" align="right">Characters Remaining: <span>1250</span></p>

                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </div>
          <div class="clear"></div>
        </div>

        <div class="completionsmall">
          <h3>Completion</h3>
          <div>
            <div style="width: 1px;">
              <p data-completion-percent="0" data-completion-key="personality">0%</p>
            </div>
          </div>
        </div>
        <div class="personality">
          <h2>Personality Questions:</h2>
          <div>
            <div>
              Q: Do you enjoy cooking
            </div>
            <div data-key="Do_you_enjoy_cooking" class="data">
              <div title="Click to Edit"><?php echo $model['question1']==0?'A: no answer':$data['cooking'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups Do_you_enjoy_cooking_group" data-question-key="Do_you_enjoy_cooking">
                    <div class="OptionGroup" data-responsegroup-key="Do_you_enjoy_cooking">
                      <select id="Do_you_enjoy_cooking">
                        <?php foreach(Constant::getCookingrray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['cooking'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                        
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: How patient do you consider yourself
            </div>
            <div data-key="How_patient_do_you_consider_yourself" class="data">
              <div title="Click to Edit"><?php echo $model['question2']==0?'A: no answer':$data['consider'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups How_patient_do_you_consider_yourself_group" data-question-key="How_patient_do_you_consider_yourself">
                    <div class="OptionGroup" data-responsegroup-key="How_patient_do_you_consider_yourself">
                      <select id="How_patient_do_you_consider_yourself">
                        <?php foreach(Constant::getConsiderArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['consider'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: Are you romantic
            </div>
            <div data-key="Are_you_romantic" class="data">
              <div title="Click to Edit"><?php echo $model['question3']==0?'A: no answer':$data['romantic'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups Are_you_romantic_group" data-question-key="Are_you_romantic">
                    <div class="OptionGroup" data-responsegroup-key="Are_you_romantic">
                      <select id="Are_you_romantic">
                        <?php foreach(Constant::getRomanticArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['romantic'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: How punctual are you typically
            </div>
            <div data-key="How_punctual_are_you_typically" class="data">
              <div title="Click to Edit"><?php echo $model['question4']==0?'A: no answer':$data['punctual'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups How_punctual_are_you_typically_group" data-question-key="How_punctual_are_you_typically">
                    <div class="OptionGroup" data-responsegroup-key="How_punctual_are_you_typically">
                      <select id="How_punctual_are_you_typically">
                        <?php foreach(Constant::getPunctualArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['punctual'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: Do you enjoy going to the movies
            </div>
            <div data-key="Do_you_enjoy_going_to_the_movies" class="data">
              <div title="Click to Edit"><?php echo $model['question5']==0?'A: no answer':$data['go_movie'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups Do_you_enjoy_going_to_the_movies_group" data-question-key="Do_you_enjoy_going_to_the_movies">
                    <div class="OptionGroup" data-responsegroup-key="Do_you_enjoy_going_to_the_movies">
                      <select id="Do_you_enjoy_going_to_the_movies">
                        <?php foreach(Constant::getGoMovieArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['go_movie'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: How much do you enjoy going to live theatre
            </div>
            <div data-key="How_much_do_you_enjoy_going_to_live_theatre" class="data">
              <div title="Click to Edit"><?php echo $model['question6']==0?'A: no answer':$data['live_theatre'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups How_much_do_you_enjoy_going_to_live_theatre_group" data-question-key="How_much_do_you_enjoy_going_to_live_theatre">
                    <div class="OptionGroup" data-responsegroup-key="How_much_do_you_enjoy_going_to_live_theatre">
                      <select id="How_much_do_you_enjoy_going_to_live_theatre">
                        <?php foreach(Constant::getLiveTheatreArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['live_theatre'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
          <div>
            <div>
              Q: How much do you like reading
            </div>
            <div data-key="How_much_do_you_like_reading" class="data">
              <div title="Click to Edit"><?php echo $model['question7']==0?'A: no answer':$data['like_reading'][0]; ?></div>
              <div>
                <div>
                  <div class="AllGroups How_much_do_you_like_reading_group" data-question-key="How_much_do_you_like_reading">
                    <div class="OptionGroup" data-responsegroup-key="How_much_do_you_like_reading">
                      <select id="How_much_do_you_like_reading">
                        <?php foreach(Constant::getLikeReadingArray() as $key => $value): ?>                           
                          <option value="<?php echo $key; ?>" <?php if($data['like_reading'][1] == $key) echo 'selected'; ?>><?php echo $value; ?></option>
                        <?php endforeach ?>
                      </select>

                    </div>
                  </div>

                </div>
                <div></div>
              </div>
            </div>

          </div>
          <div class="clear"></div>
        </div>


        <div class="completionsmall">
          <h3>Completion</h3>
          <div>
            <div style="width: 1px;">
              <p data-completion-percent="0" data-completion-key="interests">0%</p>
            </div>
          </div>
        </div>
        <div class="interests horizontal">
          <h2>My Top Interests:</h2>
          <?php $interests = CONSTANT::getInterestsArray(); 
          $interestsName = CONSTANT::getInterestsNameArray(); 
          ?>
          <?php if($model['interestImg1'] != ''){ ?>
          <div>
            <div data-key="interest-0" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$model['interestImg1']]; ?>" alt="">
                  <p><?php echo $interestsName[$model['interestImg1']]; ?></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php }else{ ?>
           <div>
            <div data-key="interest-0" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/pickinterests.jpg" alt="">
                  <p></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php } ?>
          <?php if($model['interestImg2'] != ''){ ?>
          <div>
            <div data-key="interest-1" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$model['interestImg2']]; ?>" alt="">
                  <p><?php echo $interestsName[$model['interestImg2']]; ?></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php }else{ ?>
           <div>
            <div data-key="interest-1" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/pickinterests.jpg" alt="">
                  <p></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php } ?>
          <?php if($model['interestImg3'] != ''){ ?>
          <div>
            <div data-key="interest-2" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$model['interestImg3']]; ?>" alt="">
                  <p><?php echo $interestsName[$model['interestImg1']]; ?></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php }else{ ?>
           <div>
            <div data-key="interest-2" class="interestData" data-link="<?php echo FRONT_SITE_URL; ?>user/profile/editinterest">
              <div title="Click to Edit">
                <div>
                  <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/pickinterests.jpg" alt="">
                  <p></p>
                </div>

                <div>

                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <?php } ?>
          <div class="clear"></div>
        </div>                    
        <div class="messageideas">
          <h2>Message Ideas:</h2>
          <div>
            This is a great way to help you learn about 
            those who contact you. Choose up to 4 questions that people who are 
            interested may answer when they send you a message.
            <div class="error">
              <p>
                You can only pick 4 message ideas.
              </p>
              <div class="arrow">
                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/errorarrow.png">
              </div>
              <div class="clear"></div>
            </div>
            <?php foreach(Constant::getMessageIdeasArray() as $key => $value): ?>                           
              <div>
                <input <?php if(strpos($model['message_ideas'], $key.'') !== false) echo 'checked'; ?> id="MessageIdeas-<?php echo $key; ?>" value="<?php echo $key; ?>" type="checkbox">
                <label for="MessageIdeas-<?php echo $key; ?>"><?php echo $value; ?></label>
                <div class="clear"></div>
              </div>
            <?php endforeach ?>
            
          </div>
          <div class="save">
            <a href="#deselect">Deselect All</a>
            <a href="#save" class="button_style" title="Save">Save</a>
            <a href="#cancel" class="gray" title="Cancel">Cancel</a>
          </div>
        </div>

      </div>
    </div>

  </div>
</div>